package com.chen.spring.cloud.miniapp.api.feign.service;

import com.chen.spring.cloud.miniapp.api.feign.hystrix.UserServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spring-cloud-service-admin",fallback = UserServiceHystrix.class)
public interface UserService {

    @RequestMapping(value = "/user/getUidByOpenid")
    public String getUidByOpenid(@RequestParam(value = "wx_openid") String wx_openid);


    @RequestMapping(value = "/user/signIn")
    public String signIn(@RequestParam(value = "r_id") String r_id,
                         @RequestParam(value = "u_id") Integer u_id);

}
